package cn.base;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class Main {
    public static void testDeathLock(String[] args) {
        DeathLockClass deathLockClass = new DeathLockClass();
        ExecutorService service = Executors.newCachedThreadPool();
        service.execute(deathLockClass);
        service.execute(deathLockClass);
        while (!service.isShutdown()) {

        }
    }

}
